$(document).ready(function () {
    $.ajax({
        url: serverApi3 + "/order/findO6OrderXq?id=" + $.cookie("tempId"),
        type: "POST",
        success: function (result) {
            if (result.code === 200) {
                //赋值
                $(".createTime").html(result.data.createTime)
                $(".doctorName").html(result.data.doctorName)
                $(".physician").html(result.data.physician)
                $(".fhysician").html(result.data.fhysician)
                $(".pharmacyName").html(result.data.pharmacyName)
                let doctorOrderDrugTiemVOList = result.data.doctorOrderDrugTiemVOList;
                if (doctorOrderDrugTiemVOList.length === 0) {
                    $(".isDoctorOrderDrugTiemVOList").css("display", "none")
                } else {
                    for (let index in doctorOrderDrugTiemVOList) {
                        $(".doctorOrderDrugTiemVOList").append('\n' +
                            '        <tr>\n' +
                            '            <td style="color: black">' + doctorOrderDrugTiemVOList[index].name + '</td>\n' +
                            '            <td style="color: black">' + doctorOrderDrugTiemVOList[index].hospDrugManuf + '</td>\n' +
                            '            <td style="color: black">' + doctorOrderDrugTiemVOList[index].dosage + '*' + doctorOrderDrugTiemVOList[index].specifications + '</td>\n' +
                            '            <td style="color: black">' + doctorOrderDrugTiemVOList[index].useDays + '天</td>\n' +
                            '            <td style="color: black">' + doctorOrderDrugTiemVOList[index].number + doctorOrderDrugTiemVOList[index].packagingUnit + '</td>\n' +
                            '        </tr>')
                    }
                }
            } else {
                layer.msg("请求失败", {icon: 7, anim: 6});
            }
        }
    });
});